}
&:active, &:overview, &:focus, &:checked {
- // Trick due to St limitations. It needs a background to draw a box-shadow
- background-color: rgba(0, 0, 0, 0.01);
- box-shadow: inset 0 -2px 0 0 lighten($selected_bg_color,5%);
color: lighten($panel_fg_color, 20%);
}
}
}
+ .panel-button {
+ &:active, &:overview, &:focus, &:checked {
+ // Trick due to St limitations. It needs a background to draw a box-shadow
+ background-color: rgba(0, 0, 0, 0.01);
+ box-shadow: inset 0 -2px 0 0 lighten($selected_bg_color,5%);
+ }
+ }
+
+ .panel-button.clock-display {
+ // Move highlight from .panel-button to .clock
+ &:active, &:overview, &:focus, &:checked {
+ box-shadow: none;
+
+ .clock {
+ background-color: rgba(0, 0, 0, 0.01);
+ box-shadow: inset 0 -2px 0 0 lighten($selected_bg_color,5%);
+ }
+ }
+ }
+
.panel-status-indicators-box,
.panel-status-menu-box {
spacing: 2px;
menuAlignment = 1.0 - menuAlignment;
super._init(menuAlignment);
- this._clockDisplay = new St.Label({ y_align: Clutter.ActorAlign.CENTER });
+ this._clockDisplay = new St.Label({ style_class: 'clock' });
+ this._clockDisplay.clutter_text.y_align = Clutter.ActorAlign.CENTER;
+
this._indicator = new MessagesIndicator();
const indicatorPad = new St.Widget();